.class Lcom/waiqin365/lightwork/directory/ad;
.super Lcom/waiqin365/lightapp/dailyreport/view/y;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightwork/directory/ad;->a:Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;

    invoke-direct {p0}, Lcom/waiqin365/lightapp/dailyreport/view/y;-><init>()V

    return-void
.end method


# virtual methods
.method public a(Landroid/widget/AbsListView;III)V
    .locals 11

    const v10, 0x7f080275

    const/16 v9, 0xd

    const/16 v8, 0x9

    const/4 v7, -0x1

    const/4 v6, 0x0

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/ad;->a:Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;

    iget-object v0, v0, Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;->g:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->getHeaderViewsCount()I

    move-result v0

    sub-int v1, p2, v0

    if-ltz v1, :cond_5

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/ad;->a:Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;

    iget-object v0, v0, Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;->e:Landroid/widget/EditText;

    invoke-virtual {v0}, Landroid/widget/EditText;->clearFocus()V

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/ad;->a:Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;

    invoke-static {v0}, Lcom/fiberhome/gaea/client/d/k;->a(Landroid/app/Activity;)V

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/ad;->a:Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;

    iget-object v2, p0, Lcom/waiqin365/lightwork/directory/ad;->a:Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;

    iget-object v2, v2, Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;->e:Landroid/widget/EditText;

    invoke-static {v0, v2}, Lcom/fiberhome/gaea/client/d/k;->a(Landroid/content/Context;Landroid/view/View;)Z

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/ad;->a:Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;

    iget-object v0, v0, Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;->e:Landroid/widget/EditText;

    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/ad;->a:Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;

    iget-object v0, v0, Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;->e:Landroid/widget/EditText;

    invoke-virtual {v0}, Landroid/widget/EditText;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-virtual {v0, v8, v6}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(II)V

    invoke-virtual {v0, v9, v7}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(II)V

    iget-object v2, p0, Lcom/waiqin365/lightwork/directory/ad;->a:Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;

    iget-object v2, v2, Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;->e:Landroid/widget/EditText;

    invoke-virtual {v2, v0}, Landroid/widget/EditText;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/ad;->a:Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;

    iget-object v0, v0, Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;->n:Lcom/waiqin365/lightwork/directory/b/p;

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightwork/directory/b/p;->getItem(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/share/a/c;

    iget-wide v2, v0, Lcom/waiqin365/lightapp/kehu/share/a/c;->t:D

    const-wide v4, 0x40f869f000000000L    # 99999.0

    cmpl-double v0, v2, v4

    if-nez v0, :cond_1

    const-string/jumbo v2, "0"

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/ad;->a:Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;

    iget-object v0, v0, Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;->n:Lcom/waiqin365/lightwork/directory/b/p;

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightwork/directory/b/p;->getItem(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/share/a/c;

    iget-object v0, v0, Lcom/waiqin365/lightapp/kehu/share/a/c;->v:Ljava/lang/String;

    invoke-virtual {v2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_4

    :cond_1
    const-string/jumbo v2, "1"

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/ad;->a:Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;

    iget-object v0, v0, Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;->n:Lcom/waiqin365/lightwork/directory/b/p;

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightwork/directory/b/p;->getItem(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/share/a/c;

    iget-object v0, v0, Lcom/waiqin365/lightapp/kehu/share/a/c;->v:Ljava/lang/String;

    invoke-virtual {v2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_3

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/ad;->a:Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;

    invoke-static {v0}, Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;->f(Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;)Landroid/widget/TextView;

    move-result-object v0

    invoke-virtual {v0, v6}, Landroid/widget/TextView;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/ad;->a:Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;

    invoke-static {v0}, Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;->f(Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;)Landroid/widget/TextView;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightwork/directory/ad;->a:Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;

    const v2, 0x7f080266

    invoke-virtual {v1, v2}, Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :goto_0
    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/ad;->a:Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;

    iget-object v0, v0, Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;->e:Landroid/widget/EditText;

    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/ad;->a:Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;

    iget-object v0, v0, Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;->e:Landroid/widget/EditText;

    invoke-virtual {v0}, Landroid/widget/EditText;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-virtual {v0, v8, v6}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(II)V

    invoke-virtual {v0, v9, v7}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(II)V

    iget-object v1, p0, Lcom/waiqin365/lightwork/directory/ad;->a:Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;

    iget-object v1, v1, Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;->e:Landroid/widget/EditText;

    invoke-virtual {v1, v0}, Landroid/widget/EditText;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    :cond_2
    return-void

    :cond_3
    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/ad;->a:Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;

    invoke-static {v0}, Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;->f(Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;)Landroid/widget/TextView;

    move-result-object v0

    invoke-virtual {v0, v6}, Landroid/widget/TextView;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/ad;->a:Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;

    invoke-static {v0}, Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;->f(Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;)Landroid/widget/TextView;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightwork/directory/ad;->a:Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;

    invoke-virtual {v1, v10}, Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_0

    :cond_4
    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/ad;->a:Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;

    invoke-static {v0}, Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;->f(Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;)Landroid/widget/TextView;

    move-result-object v0

    invoke-virtual {v0, v6}, Landroid/widget/TextView;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/ad;->a:Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;

    invoke-static {v0}, Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;->f(Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;)Landroid/widget/TextView;

    move-result-object v2

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/ad;->a:Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;

    iget-object v0, v0, Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;->n:Lcom/waiqin365/lightwork/directory/b/p;

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightwork/directory/b/p;->getItem(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/share/a/c;

    iget-object v0, v0, Lcom/waiqin365/lightapp/kehu/share/a/c;->o:Ljava/lang/String;

    const-string/jumbo v1, "$"

    iget-object v3, p0, Lcom/waiqin365/lightwork/directory/ad;->a:Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;

    invoke-virtual {v3, v10}, Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v1, v3}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v2, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_0

    :cond_5
    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/ad;->a:Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;

    invoke-static {v0}, Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;->f(Lcom/waiqin365/lightwork/directory/DirectorySelectMultiModeActivity;)Landroid/widget/TextView;

    move-result-object v0

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    goto :goto_0
.end method
